#ifndef ImageWindow_H
#define ImageWindow_H

#include <QMainWindow>
#include "imageview.h"

#include <qscrollarea.h>
#include <QHBoxLayout>
#include <qpushbutton.h>
#include <QSettings>

class ImageWindow : public QMainWindow
{
    Q_OBJECT

public:
    ImageWindow(QWidget *parent = nullptr);
    ImageWindow(QWidget *parent = nullptr, QString file = nullptr);
    ~ImageWindow();
    void setImage(QPixmap img);
    void open_file(QString file);
private slots:
    void show_prev();
    void open_files();
    void show_next();
private:


    ImageView *m_box;
    QPushButton *m_prevBtn;
    QPushButton *m_openBtn;
    QPushButton *m_nextBtn;

    QString m_file;
    QVector<QString> m_files;
    int m_idx;

};

#endif // MAINWINDOW_H
